package com.jiantong.lawEnforcing.service;

import com.jiantong.lawEnforcing.model.WritDetails;
import io.terminus.common.model.Paging;
import io.terminus.common.model.Response;

/**
 * 文书内容
 * Created by mz03 on 2017/8/17.
 */
public interface WritDetailsService {

    /**
     * id 查找
     * @param id
     * @return News
     */
    Response<WritDetails> finById(Long id);


    /**
     * 创建
     * @param writDetails 单据对象
     * @return 主键 id
     */
    Response<Long> create(WritDetails writDetails);



    /**
     * 更新
     * @param writDetails 单据对象
     * @return true or false
     */
    Response<Boolean> update(WritDetails writDetails);

    /**
     * 根据文书类型 查询list
     */
    Response<Paging<WritDetails>> findByType(Integer pageNo, Integer pageSize, Long cases_basic_id, Integer type);
}
